﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VoucherAdd.ascx.cs" Inherits="PayrollHR.Administration.Modules.VoucherAddControl" %>
<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>

<%@ Register src="VoucherInfo.ascx" tagname="VoucherInfo" tagprefix="uc2" %>

<asp:UpdatePanel ID="upForumSubscriptions" runat="server">
    <ContentTemplate>
        <div class="section-header">
            <div class="title">
                <img src="Common/ico-catalog.png" alt='Thêm hóa đơn' />
                Thêm hóa đơn
                <asp:Label runat="server" ID="lblTitle" />
                <a href="Vouchers.aspx" title='Danh sách hóa đơn'>
                    (Danh sách hóa đơn)
                </a>
            </div>
            <div class="options">
                <asp:Button ID="SaveButton" runat="server" Text="<% $PayrollResources:Admin.CustomerAdd.SaveButton.Text %>"
                    ToolTip="<% $PayrollResources:Admin.CustomerAdd.SaveButton.Tooltip %>" CssClass="adminButtonBlue" OnClientClick="return show()" OnClick="SaveButton_Click" />
                <asp:Button ID="SaveAndStayButton" runat="server" CssClass="adminButtonBlue" Text="<% $PayrollResources:Admin.CustomerAdd.SaveAndStayButton.Text %>" ToolTip="<% $PayrollResources:Admin.CustomerAdd.SaveAndStayButton.Tooltip %>"
                    OnClick="SaveAndStayButton_Click" OnClientClick="return show()" />
            </div>
        </div>
        <asp:Label runat="server" ID="lbloi"
            Visible="False" Font-Size="X-Large" ForeColor="#FF3300"></asp:Label>        
        <p>
            
            <uc2:VoucherInfo ID="ctrlVoucherInfo" runat="server" />
            
        </p>        
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="SaveButton" />
        <asp:PostBackTrigger ControlID="SaveAndStayButton" />
    </Triggers>
</asp:UpdatePanel>
<asp:UpdateProgress ID="up1" runat="server" AssociatedUpdatePanelID="upForumSubscriptions">
    <ProgressTemplate>
        <div class="progress">
            <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/images/UpdateProgress.gif"
                AlternateText="update" />
            <%=GetLocaleResourceString("Admin.Common.Wait...")%>
        </div>
    </ProgressTemplate>
</asp:UpdateProgress>


